-- GENERATED SPELL FOR [Mature Bone Sifter] --


function spell0_22482(pUnit, Event) --@Bore,n/a--
pUnit:FullCastSpellOnTarget(32738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22482', 20000, 1)
end

function spell1_22482(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(31747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22482', 2000, 1)
end

function Sorts_22482(pUnit, Event)
local choix_sorts_22482 = math.random(0, 1)
if choix_sorts_22482 == 0 then
pUnit:RegisterEvent('spell0_22482', 1, 1)
end
if choix_sorts_22482 == 1 then
pUnit:RegisterEvent('spell1_22482', 1, 1)
end
end

function mob22482_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22482', math.random(1500, 3000), 1)
end

function mob22482_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22482_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22482_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22482, 1, 'mob22482_Action')
RegisterUnitEvent(22482, 2, 'mob22482_Leave')
RegisterUnitEvent(22482, 3, 'mob22482_Kill')
RegisterUnitEvent(22482, 4, 'mob22482_Die')
